package com.yy.wga.order.feign.api;

import com.yy.wga.common.core.dto.Result;
import com.yy.wga.order.feign.request.OrderGoodsPageRequest;
import com.yy.wga.order.feign.response.OrderGoodsPageResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.List;

/**
 * 订单管理
 *
 * @author guochao
 * @since 2024-11-01 21:14:37
 */
@FeignClient(name = "OrderGoodsFeign", url = "https://wga-api.xianrcj.com",
        path = "/api/order/goods")
public interface OrderGoodsFeign {

    /**
     * 订单列表
     * @param request
     * @return
     */
    @PostMapping("list")
    Result<List<OrderGoodsPageResponse>> list(@Valid @RequestBody OrderGoodsPageRequest request);
}
